import request from '@/utils/request'

export function listtsLayer(query) {
  return request({
    url: '/data/tsLayer/list',
    method: 'get',
    params: query
  })
}

export function createtsLayer(data) {
  return request({
    url: '/data/tsLayer/create',
    method: 'post',
    data
  })
}

export function readtsLayer(data) {
  return request({
    url: '/data/tsLayer/get/' + data.id,
    method: 'get'
  })
}

export function updatetsLayer(data) {
  return request({
    url: '/data/tsLayer/update',
    method: 'post',
    data
  })
}

export function deletetsLayer(data) {
  return request({
    url: '/data/tsLayer/delete/' + data.flayerNo,
    method: 'delete'
  })
}
